/**
 * Created by Freeman on 2016/8/3.
 */
import * as types from '../constants/ActionTypes'

export const showMsg = (content, type = 'error') => {
    return {
        type: types.SHOW_MSG,
        message: {
            content: content,
            type: type
        }
    }
};

export const hideMsg = () => (
    {
        type: types.HIDE_MSG
    }
);